<%@ page import="com.xing.domain.Account" %>
<%@ page import="com.xing.util.TokenUtils" %><%--
  Created by IntelliJ IDEA.
  User: xingfuhao
  Date: 2021/5/8
  Time: 21:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>转账页面</title>
</head>
<body>
<%
    Account account= (Account) request.getSession().getAttribute("account");
    if(account==null){
        response.sendRedirect(request.getContextPath()+"/login.jsp");
        return;
    }
    //session中包含一个令牌
    TokenUtils.addToken(request, "transToken");
%>
    <h2>转账功能</h2>
    <form action="trans" method="post">
        <input type="text" name="toCardNo" placeholder="请输入对方卡号"><br/>
        <input type="text" name="money" placeholder="请输入转账金额"><br/>
        <input type="submit" value="转账">
        <input type="hidden" name="myTransToken" value="${transToken}">
    </form>

</body>
</html>
